package cc.aiee.alipay.model.freeze;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import cc.aiee.core.interfaces.PayJsonBeanInterface;
import cc.aiee.core.kit.KitJson;
import lombok.Data;

@Data
public class AliPayFreezeMinAppModel implements PayJsonBeanInterface {

	@NotBlank
	private String orderNo;
	@NotBlank
	private String orderTitle;

	private String outRequestNo;
	
	/**
	 * 收款方的支付宝唯一用户号(商户号)
	 */
	private String payeeUserId;
	/**
	 * 收款方的支付宝唯一用户号,支付宝登陆账号
	 * <p>
	 * 示例: hector666@aliyun.com
	 * </p>
	 */
	private String payeeLogonId;
	/**
	 * 金额
	 */
	@NotNull
	private Integer amount;

	private String notifyUrl;
	
	@Override
	public String toJson() {
		return KitJson.toJSONString(this);
	}

	@Override
	public String toJson(boolean prettyFormat, boolean ignoreNull) {
		return KitJson.toJSONString(this, prettyFormat, ignoreNull);
	}

}
